package com.zmj.framework.request;

import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * @author Zhang Qingsong
 * @date 2021/9/6
 */
@Builder(builderMethodName = "PageRequest")
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Data
public class PageRequest implements Serializable {
    @NotNull
    Integer pageNum = 1;
    @NotNull
    Integer pageSize = 10;

    private String order;

    private String orderBy;

    private Map<String, Object> param;
}
